import { service } from "../http/request";

/**
 * 获取工资帐套
 */
const getSalary = () => {
  return service({
    method: 'get',
    url: '/salary/sob/salaries'
  })
}

/**
 * 添加工资帐套
 */
const addSalary = (param) => {
  return service({
    method: 'post',
    url: '/salary/sob/',
    data: param
  })
}

/**
 * 删除工资帐套
 */
const deleteSalary = (id) => {
  return service({
    method: 'delete',
    url: `/salary/sob/${id}`,
  })
}

/**
 * 更新工资帐套
 */
const updateSalary = (param) => {
  return service({
    method: 'put',
    url: '/salary/sob/',
    data: param
  })
}

export default {
  getSalary,
  addSalary,
  deleteSalary,
  updateSalary
}
